cod_repeat_damage

Syntax

native cod_repeat_damage(attacker, victim, Float:damage = 0.0, Float:time = 0.0, counter = 1, flags = DMG_CODSKILL, instant = true);

Usage

attacker
Player that makes damage
victim
Player that is receiving damage
damage
Damage amount to make
time
Interval between damage events
counter
Damage dealt to players in dmgDistance
flags
Damage flag in DMG_* format, alternatively FIRE, POISON, or HEAL
(healing player instead of hurting) to use custom effects out of the box.
instant
If true makes first damage immediately

Description

Makes repeating damage to player.

Note

Uses cod_inflict_damage with DMG_REPEAT flag.

Note

If damage or time is set 0.0 previous task will be removed and no new task created.

Note

If counter is set 0 effect will last till player death or round end - usefull for constant healing.

Return

This function has no return value.